Using the array method from the numpy package